<extend name="Public/base" />

<block name="wrapper">
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-heading"><h3>网站配置管理</h3></div>
				<!-- /.panel-heading -->
				<div class="panel-body">
					<div class="dataTable_wrapper">
						<table class="table table-striped table-bordered table-hover" id="dataTables-example" align="center">
							<thead>
								<tr>	
					                <th>id</th>
									<th>网站名</th>
									<th>网站logo</th>
									<th>网址</th>
									<th>关键字</th>
									<th>网站描述</th>
									<th>状态</th>
									<th>操作</th>
													
								</tr>
								
							</thead>
							<tbody>

								<foreach name="data" item="vo">
									<tr>
										<td>{$vo['id']}</td>
										<td>{$vo['webname']}</td>
										<td>{$vo['logo']}</td>
										<td>{$vo['url']}</td>
										<td>{$vo['keywords']}</td>
										<td>{$vo['description']}</td>
										<td>{$vo['status']}</td>
										<td>
										    <a href="{:U('Config/add')}">添加</a> |
											<a href="{:U('Config/find',['id'=>$vo['id']])}">修改</a> |
											<!-- 必须通知一下对应的控制器方法是否可以做删除 -->
											<a href="{:U('Config/destroy', ['id'=>$vo['id']])}">禁用</a> |
											<a href="{:U('Config/qi', ['id'=>$vo['id']])}">启用</a> 										

										</td>
									</tr>

								</foreach>

							</tbody>
						</table>
					</div>
					<!-- /.table-responsive -->
				</div>
				<!-- /.panel-body -->
			</div>
			<!-- /.panel -->
		</div>
		<!-- /.col-lg-12 -->
	</div>

</block>